package com.irdstudio.tdp.console.dao;

import java.util.List;

import com.irdstudio.tdp.console.dao.domain.BatTaskNlsjobConf;
import com.irdstudio.tdp.console.service.vo.BatTaskNlsjobConfVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 任务运行作业配置的DAO类
 * </p>
 * @author szbd
 * @createDate 2020-06-23 09:03:35
 */
public interface BatTaskNlsjobConfDao {
    
    /**
     * 插入任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public int insertBatTaskNlsjobConf(BatTaskNlsjobConf batTaskNlsjobConf);
    
    /**
     * 根据主键删除任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public int deleteBatTaskNlsjobConfByPk(BatTaskNlsjobConf batTaskNlsjobConf);
    
    /**
     * 根据主键更新任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public int updateBatTaskNlsjobConfByPk(BatTaskNlsjobConf batTaskNlsjobConf);
    
    /**
     * 根据主键查询任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public BatTaskNlsjobConf queryBatTaskNlsjobConfByPk(BatTaskNlsjobConf batTaskNlsjobConf);
    
    /**
     * 条件查询单笔任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public BatTaskNlsjobConf querySingleBatTaskNlsjobConfByCondition(BatTaskNlsjobConf batTaskNlsjobConf);
    
    /**
     * 查询任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public List<BatTaskNlsjobConf> queryBatTaskNlsjobConfByCondition(BatTaskNlsjobConfVO batTaskNlsjobConfVo);
    
    /**
     * 条件分页查询任务运行作业配置记录
     * @param batTaskNlsjobConf
     * @return
     */
    public List<BatTaskNlsjobConf> queryBatTaskNlsjobConfByConditionByPage(BatTaskNlsjobConfVO batTaskNlsjobConfVo);
    
    /**
     * 根据任务ID查询并排序
     * @param taskId
     * @return
     */
    public List<BatTaskNlsjobConf> queryBatTaskNlsjobConfByTaskIdOrderBySort(@Param("taskId") String taskId);
    
    /**
     * 查询排序
     * @param taskId
     * @param sort
     * @param upOrDown
     * @return
     */
    public BatTaskNlsjobConf queryBatTaskNlsjobConf4Move(@Param("taskId") String taskId, @Param("sort") int sort, @Param("upOrDown") String upOrDown);
}